package com.edu.bean;


import java.sql.Timestamp;
import java.util.Date;

public class News {
	private int id; 
	private String title;     // 新闻标题
	private String content;   // 新闻正文内容
	private	Date publishDate; // 新闻发布日期和时间
	private String author;    // 新闻作者姓名
	private String imageUrl;  // 新闻配图的URL地址
    // 无参构造方法
    public News() {}

    // 有参构造方法
   
    public News(int id, String title, String content, Date publishDate, String author, String imageUrl) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
		this.publishDate = publishDate;
		this.author = author;
		this.imageUrl = imageUrl;
	}
    
    public News(String title, String content, Date publishDate, String author, String imageUrl) {
		super();
		this.title = title;
		this.content = content;
		this.publishDate = publishDate;
		this.author = author;
		this.imageUrl = imageUrl;
	}
    
	public News(int id, String title, String content, Date publishDate, String author) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
		this.publishDate = publishDate;
		this.author = author;
	}
	
	public News(String title, String content, Date publishDate, String author) {
		super();
		this.title = title;
		this.content = content;
		this.publishDate = publishDate;
		this.author = author;
	}

	// Getter和Setter方法
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	
	public Date getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}
    
    
}